#ifndef __LAPCOUNT_H
#define __LAPCOUNT_H
#include "protocol.h"
typedef enum __TMR_DrictionStatus
{
    TBD=0,
    StatusA,
    StatusB
}TMR_DrictionStatus;

typedef enum __TMR_Driction
{
    ClockWise=0,        // 顺时针 正方向
    CounterClockWise    //逆时针 反方向
}TMR_Driction;

typedef struct __TMR_STATUS
{
    LinkedListQueue* TMR_DrictionStatusQueue;
    TMR_Driction TMR_Driction;
}TMR_STATUS;

void LapCount_Init(void);
int16_t LapCount_Get(void);

LinkedListQueue* TMR_init();
void TMR_push_back(TMR_DrictionStatus TMR_DrictionStatus);
TMR_Driction TMR_Get_Driction();
TMR_DrictionStatus TMR_Get_TMR1_Driction_Status(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin_TMR1,uint16_t GPIO_Pin_TMR2);
TMR_DrictionStatus TMR_Get_TMR2_Driction_Status(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin_TMR1,uint16_t GPIO_Pin_TMR2);


#endif //__LAPCOUNT_H
